<%@tag description="flowplayer wapper" pageEncoding="UTF-8"%>
<%@taglib prefix="c"  uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@attribute name="vodurl" required="true" type="java.lang.String" rtexprvalue="true"%>
<c:if test="${!(empty vodurl) and fn:length(vodurl)>9}">
    <p style="text-align:center;"><a id="infoVodPlay" style="display:block;width:510px;height:320px;margin:auto;"></a></p>
    <script src="${CDN_DOMAIN}/plus/flowplayer/flowplayer.js"></script>
    <script>
        function PlayVod(v){
            if(!v || v.length<9){
                return;
            }
            $f("infoVodPlay","${CDN_DOMAIN}/plus/flowplayer/flowplayer.swf",{
                clip: {
                    url:v,
                    scaling: 'fit',
                    autoPlay: true, 
                    autoBuffering: true,
                    bufferLength:3
                },
                plugins:{
                    controls: {
                        playlist: true
                    }
                }
            }
        );
        };
        PlayVod('${vodurl}');
    </script>
</c:if>